package com.base.pig.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 程序根据用户设定的上下限判断的报警数据
 * </p>
 *
 * @author yjh
 * @since 2022-04-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="SensorCheckAlarm对象", description="程序根据用户设定的上下限判断的报警数据")
public class SensorCheckAlarm implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "ALARM_ID", type = IdType.NONE)
    private String alarmId;

    @ApiModelProperty(value = "传感器id")
    @TableField("DEVICE_SENSOR_ID")
    private String deviceSensorId;

    @ApiModelProperty(value = "报警类型（超低限、超高限、超时、主动上报）")
    @TableField("ALARM_TYPE")
    private String alarmType;

    @ApiModelProperty(value = "报警值")
    @TableField("ALARM_VALUE")
    private BigDecimal alarmValue;

    @ApiModelProperty(value = "是否删除（无用）")
    @TableField("DELETED")
    private String deleted;

    @ApiModelProperty(value = "最近报警时间")
    @TableField("ALARM_TIME")
    private Date alarmTime;

    @ApiModelProperty(value = "标准值（无用）")
    @TableField("THRESHOLD")
    private BigDecimal threshold;

    @ApiModelProperty(value = "报警等级（无用）")
    @TableField("ALARM_LEVEL")
    private String alarmLevel;

    @ApiModelProperty(value = "传感器类型（sensor_name字段值）")
    @TableField("SENSOR_TYPE")
    private String sensorType;

    @ApiModelProperty(value = "报警开始时间")
    @TableField("ALARM_START_TIME")
    private Date alarmStartTime;

    @ApiModelProperty(value = "报警状态（0代表未恢复 1代表已恢复）")
    @TableField("ALARM_STATUS")
    private String alarmStatus;

    @ApiModelProperty(value = "处理状态（0代表未未处理 1代表已派单）")
    @TableField("ORDER_STATUS")
    private String orderStatus;

    @ApiModelProperty(value = "工单编号")
    @TableField("ORDER_NUM")
    private String orderNum;



}
